package batch.process.utils;

import org.apache.log4j.Logger;

public class BatchProcessLogger {

	static {
		try {
			Log4jConfigurator.configure();
		} catch(Exception ignored)	{
		}
	}

	private static Logger logger = Logger.getRootLogger();
	
	public BatchProcessLogger() {
	}

	synchronized public void info(String msg, Class className) {
		logger.getLogger(className).info(msg);
	}

	synchronized public void error(String msg, Class className) {
		logger.getLogger(className).error(msg);
	}

	synchronized public void debug(String msg, Class className) {
		logger.getLogger(className).debug(msg);

	}
}
